Markifnotmaster: New functionality to watermark if not working on release/publish/master-branch.#22
Open
obma wants to merge 8 commits intoHightor:CTANfrom
Open
Markifnotmaster: New functionality to watermark if not working on release/publish/master-branch.#22obma wants to merge 8 commits intoHightor:CTANfrom
obma wants to merge 8 commits intoHightor:CTANfrom
Conversation
New package options:
- markifnotmaster: bool to enable watermarking if not on release-branch
- master: string (default: master); name of the release-branch
Example:
\usepackage[markifnotmaster,master=publish]{gitinfo2}
Added parameter -c to set the name of the current branch. If set to CI_BUILD_REF_NAME the environment variable CI_BUILD_REF_NAME, wich is available in GitLab CI, is used to determine the name of the current branch.
Place this file in your project root named .latexmkrc or latexmkrc and use latexmk to compile. The parameter "-c CI_BUILD_REF_NAME" is only needed, if you want to enable use of gitinfo2 in gitlab automatic builds.
Having this file (named .gitlab-ci.yml) in your GitLab repository will automatically compile your project after every push and save the pdf. Adopt main.tex and main.pdf to your project.
|
This repository is no longer active: please re-report issues at https://github.com/josephwright/gitinfo2/issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New package options:
Example:
\usepackage[markifnotmaster,master=publish]{gitinfo2}